package com.fh.shop.api.book.param;

import com.fh.shop.api.common.PageBean;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@ApiModel
@Data
public class BookQueryParam extends PageBean implements Serializable {

//    @ApiModelProperty(name = "bookName",value = "图书名称")
    public String bookName;

//    @ApiModelProperty(name = "author",value = "图书作者")
    public String author;

//    @ApiModelProperty(name = "startPrice",value = "开始价格",example = "0")
    public BigDecimal startPrice;

//    @ApiModelProperty(name = "endPrice",value = "结束价格",example = "0")
    public BigDecimal endPrice;

//    @ApiModelProperty(name = "startDate",value = "开始日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date startDate;

//    @ApiModelProperty(name = "endDate",value = "结束日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public Date endDate;
}
